//
//  SDPhotoTagView.h
//  SKinDiary
//
//  Created by pcyang on 16/7/16.
//  Copyright © 2016年 tencent. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kPhotoTagViewHeight 28
#define kPhotoTagPadding 30

@class SDPhotoTagView;

@protocol PhotoTagViewDelegate <NSObject>
-(void)tagViewPressed:(SDPhotoTagView*)addTagView;
@end

@interface PhotoTagItem : NSObject
@property(nonatomic,strong)NSString* title;
@property(nonatomic,assign)BOOL inUsed;
@end

@interface SDPhotoTagView : UIButton
@property(nonatomic,strong)UIImageView* deleteImageview;

@property(nonatomic,weak)id<PhotoTagViewDelegate> delegate;

-(void)setTagItem:(PhotoTagItem *)tagItem;
-(PhotoTagItem*)getTagItem;

-(void)refresh;
@end
